let arr = [1,2,3,4];
arr.map((item) => {
    return item*2
})
var person = [
    {name: 'tom'},
    {name: 'jack'}
]
var pname = person.map((item) => {
    return item.name
})
console.log(pname);


var prop = curry(function (key,obj) {
    return obj[key]
})
var panme = person.map(prop('name'))

